<!DOCTYPE html>
<!--[if lte IE 8 ]>
<html class="ie" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<!--
***************  *      *     *
      8          *    *       *
      8          *  *         *
      8          **           *
      8          *  *         *
      8          *    *       *
      8          *      *     *
      8          *        *   ***********    -----Theme By Kieran(http://go.kieran.top)
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<!--<![endif]-->

<head>
  <title>jack&#39;s blogs</title>
  <!-- Meta data -->
    <meta http-equiv="Content-Type" content="text/html" charset="UTF-8" >
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="generator" content="jack's blogs">
    <meta name="author" content="Jack fan">
    <meta name="description" content="write something" />
    <meta name="keywords" content="jack's blogs" />

    <!-- Favicon, (keep icon in root folder) -->
    <link rel="Shortcut Icon" href="/img/favicon.ico" type="image/ico">

    <link rel="alternate" href="/atom.xml" title="jack&#39;s blogs" type="application/atom+xml">
    <link rel="stylesheet" href="/css/all.css" media="screen" type="text/css">
    
    <link rel="stylesheet" href="/highlightjs/vs.css" type="text/css">
    

    <!--[if IE 8]>
    <link rel="stylesheet" type="text/css" href="/css/ie8.css" />
    <![endif]-->

    <!-- jQuery | Load our jQuery, with an alternative source fallback to a local version if request is unavailable -->
    <script src="/js/jquery-1.11.1.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/jquery-1.11.1.min.js"><\/script>')</script>

    <!-- Load these in the <head> for quicker IE8+ load times -->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="/js/html5shiv.min.js"></script>
    <script src="/js/respond.min.js"></script>
    <![endif]-->

  
  
  

  <style>.col-md-8.col-md-offset-2.opening-statement img{display:none;}</style>
</head>

<!--
<body class="home-template">
-->
<body id="index" class="lightnav animsition">

      <!-- ============================ Off-canvas navigation =========================== -->

    <div class="sb-slidebar sb-right sb-style-overlay sb-momentum-scrolling">
        <div class="sb-close" aria-label="Close Menu" aria-hidden="true">
            <img src="/img/close.png" alt="Close"/>
        </div>
        <!-- Lists in Slidebars -->
        <ul class="sb-menu">
            <li><a href="/" class="animsition-link" title="Home">Home</a></li>
            <li><a href="/archives" class="animsition-link" title="archive">archives</a></li>
            <!-- Dropdown Menu -->
			 
            <li>
                <a class="sb-toggle-submenu">Works<span class="sb-caret"></span></a>
                <ul class="sb-submenu">
                    
                        <li><a href="/tags/hexo" target="_BLANK" class="animsition-link">hexo</a></li>
                    
                        <li><a href="/tags/git" target="_BLANK" class="animsition-link">git</a></li>
                    
                </ul>
            </li>
            
            
        	<li>
        		<a class="sb-toggle-submenu">Categories<span class="sb-caret"></span></a>
            	<ul class="sb-submenu">
				  	
				    <li><a href="/categories/Reading/" class="animsition-link">Reading<small>(1)</small></a></li>
				    
				    <li><a href="/categories/git/" class="animsition-link">git<small>(1)</small></a></li>
				    
				    <li><a href="/categories/hexo/" class="animsition-link">hexo<small>(2)</small></a></li>
				    
				    <li><a href="/categories/linux/" class="animsition-link">linux<small>(1)</small></a></li>
				    
				    <li><a href="/categories/sql/" class="animsition-link">sql<small>(1)</small></a></li>
				    
				</ul>
        	</li>
			
            
            <li>
                <a class="sb-toggle-submenu">Links<span class="sb-caret"></span></a>
                <ul class="sb-submenu">
                    
                    <li><a href="http://go.kieran.top/" class="animsition-link">Kieran</a></li>
                    
                    <li><a href="http://domain.com/" class="animsition-link">Name</a></li>
                    
                </ul>
            </li>
            
        </ul>
        <!-- Lists in Slidebars -->
        <ul class="sb-menu secondary">
            <li><a href="/about.html" class="animsition-link" title="about">About</a></li>
            <li><a href="/atom.xml" class="animsition-link" title="rss">RSS</a></li>
        </ul>
    </div>
    
    <!-- ============================ END Off-canvas navigation =========================== -->

    <!-- ============================ #sb-site Main Page Wrapper =========================== -->

    <div id="sb-site">
        <!-- #sb-site - All page content should be contained within this id, except the off-canvas navigation itself -->

        <!-- ============================ Header & Logo bar =========================== -->

        <div id="navigation" class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <!-- Nav logo -->
                    <div class="logo">
                        <a href="/" title="Logo" class="animsition-link">
                         <img src="/img/logo.png" alt="Logo" width="35px;"/> 
                        </a>
                    </div>
                    <!-- // Nav logo -->
                    <!-- Info-bar -->
                    <nav>
                        <ul class="nav">
                            <li><a href="/" class="animsition-link">jack's blogs</a></li>
                            <li class="nolink"><span>Always </span>Creative.</li>
                            
                            <li><a href="https://github.com/fanyangyang" title="Github" target="_blank"><i class="icon-github"></i></a></li>
                            
                            
                            
                            
                            
                            <li class="nolink"><span>Welcome!</span></li>
                        </ul>
                    </nav>
                    <!--// Info-bar -->
                </div>
                <!-- // .container -->
                <div class="learnmore sb-toggle-right">More</div>
                <button type="button" class="navbar-toggle menu-icon sb-toggle-right" title="More">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar before"></span>
                <span class="icon-bar main"></span>
                <span class="icon-bar after"></span>
                </button>
            </div>
            <!-- // .navbar-inner -->
        </div>

        <!-- ============================ Header & Logo bar =========================== -->


      <!-- ============================ Hero Image =========================== -->

<section id="hero" class="scrollme">
    <div class="container-fluid element-img" style="background: url(/img/watch_dogs_2.jpg) no-repeat center center fixed;background-size: cover">
        <div class="row">
            <div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2 vertical-align cover boost text-center">
                <div class="center-me animateme" data-when="exit" data-from="0" data-to="0.6" data-opacity="0" data-translatey="100">
                    <div>
                        
                        <h2><span style="color:white">YOU'VE MADE A <span>BRAVE</span> DECISION, WELCOME.<br/>Join us.</span></h2>
                        <p></p>
                        
                        <h2></h2>
                        <p><span style="color:white">每一个不曾起舞的日子都是对生命的辜负。</span></p>
                        

                    </div>
                </div>
            </div>
            <!-- // .col-md-12 -->
        </div>
        <div class="herofade beige-dk"></div>
    </div>
</section>

<!-- Height spacing helper -->
<div class="heightblock"></div>
<!-- // End height spacing helper -->

<!-- ============================ END Hero Image =========================== -->
<!-- ============================ Content =========================== -->

<section id="intro">
    <div class="container">
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/ThoughtWorks-Reading-radar.html">ThoughtWorks Reading radar</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2017-11-30T02:24:59.000Z" itemprop="datePublished">
          2017-11-30
      </time>
    
    
    | 
    <a href='/tags/Reading/'>Reading</a>,
    
    <a href='/tags/coder/'>coder</a>,
    
    <a href='/tags/ThoughtWorks/'>ThoughtWorks</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p class="index-excerpt">
                      
                        
摘自：http://agiledon.github.io/blog/2013/04/17/thoughtworks-developer-reading-radar/


软件业的特点是变化。若要提高软件开发的技能，就必须跟上技术发展的步伐。埋首醉心于项目开发与实战，固然能够锤炼自己的开发技巧，却难免受限于经验与学识。世界上并不存在速成的终南捷径，但阅读好的技术书籍，尤其是阅读大师们的经典著作，总能收到事半功倍之效。一位优秀的程序员，或
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/ThoughtWorks-Reading-radar.html">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/better-sql-query.html">better sql query</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2017-11-04T09:32:23.000Z" itemprop="datePublished">
          2017-11-04
      </time>
    
    
    | 
    <a href='/tags/study/'>study</a>,
    
    <a href='/tags/sql/'>sql</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p class="index-excerpt">
                      
                        
索引不要建立在主键上 索引的作用是将数据根据某一类属性或条件进行分组，从而达到加速查询的目的。而主键的作用是为了区分不同的数据，在全表中主键是不会重复的，是唯一的，所以及时根据主键进行分组，也会是每个分组只有一个数据，达不到加速查询的目的。所以不要在主键上创建索引。 在时间字段上创建索引可以将时间中的天和时间进行拆分，分成两个字段，在天这个字段或者是时间这个字段上创建索引。
使用内存操作取代数据库操作
t1




第一格表头
第二格
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/better-sql-query.html">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/linux-tar.html">linux tar</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2017-11-04T05:54:32.000Z" itemprop="datePublished">
          2017-11-04
      </time>
    
    
    | 
    <a href='/tags/linux/'>linux</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p class="index-excerpt">
                      
                        Linux 压缩指令【tar】
摘自：http://www.cnblogs.com/52linux/archive/2012/03/04/2379738.html

参数：-c  ：建立一个压缩档案的参数指令(create 的意思)；-x  ：解开一个压缩档案的参数指令！-t  ：查看 tarfile 里面的档案！特别注意，在参数的下达中， c/x/t 仅能存在一个！不可同时存在！因为不可能同时压缩与解压缩。-z  ：是否同时具有 gz
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/linux-tar.html">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/git忽略文件无效.html">git忽略文件无效 </a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2017-10-28T08:57:07.000Z" itemprop="datePublished">
          2017-10-28
      </time>
    
    
    | 
    <a href='/tags/git/'>git</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p class="index-excerpt">
                      
                        文章由来今天小女生问我一个git管理的项目中，某些配置文件（不能被提交到服务器的文件，例如.classpath等.）被修改了,该怎么办。我就想呀，以前好像碰到过这样的问题，同事们也问过我好几次了，虽然这招也是我从之前的领导那里学来的，不过至少咱们学会了。下面就来介绍这个git的指令。
1git update-index --assume-unchanged file
在这里要指出file指的就是已经存在于项目根目录下.gitignore
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/git忽略文件无效.html">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/first-blog-test.html">first blog test</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2017-10-28T07:47:57.000Z" itemprop="datePublished">
          2017-10-28
      </time>
    
    
    | 
    <a href='/tags/hexo/'>hexo</a>,
    
    <a href='/tags/test/'>test</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p class="index-excerpt">
                      
                        this is the first blog created by command hexo new1hexo new [layout] title
it will generate a new markdown file title.md in folder /source/[layout]/下

                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/first-blog-test.html">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <div class="row">
            <div class="col-md-8 col-md-offset-2 opening-statement">
                <div class="col-md-4">
                    <h3><a href="/hello-world.html">Hello World</a></h3>
                    <span>
                        <span class="post-meta">
      <time datetime="2017-10-28T02:48:30.096Z" itemprop="datePublished">
          2017-10-28
      </time>
    
    
    | 
    <a href='/tags/hexo/'>hexo</a>,
    
    <a href='/tags/test/'>test</a>
    
    
</span>
                    </span>
                </div>
                <div class="col-md-8">
                    <p class="index-excerpt">
                      
                        Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new p
                      
                    </p>
                    
                    <p class="pull-right readMore">
                        <a href="/hello-world.html">Read More...</a>
                    </p>
                    
                </div>
                <div class="clearfix"></div>
                <hr class="nogutter">
            </div>
        </div>
        
        <nav class="pagination" role="pagination">
          
          
        </nav>
    </div>
</section>
<section id="statement">
    <div class="container text-center wow fadeInUp" data-wow-delay="0.5s">
        <div class="row">
            <p>虽然还没想好写点什么，但是总觉得这里放句话比较和谐。</p>
        </div>
    </div>
</section>
<!-- ============================ END Content =========================== -->

      
<!-- ============================ Footer =========================== -->

<footer>
    <div class="container">
            <div class="copy">
                <p>
                    &copy; 2014<script>new Date().getFullYear()>2010&&document.write("-"+new Date().getFullYear());</script>, Content By Jack fan. All Rights Reserved.
                </p>
                <p>Theme By <a href="//go.kieran.top" style="color: #767D84">Kieran</a></p>
            </div>
            <div class="social">
                <ul>
                    
                    <li><a href="https://github.com/fanyangyang" title="Github" target="_blank"><i class="icon-github"></i></a>&nbsp;</li>
                    
                    
                    
                    
                    
                </ul>
            </div>
            <div class="clearfix"> </div>
        </div>
</footer>

<!-- ============================ END Footer =========================== -->
<script src="//cdn1.lncld.net/static/js/2.5.0/av-min.js"></script>
<script>
    var APP_ID = '6q2JbQpr6Q4zmzFzG74kS1kA-gzGzoHsz';
    var APP_KEY = '0G5Hg5OUFcKLlGy5v1EiBArs';
    AV.init({
        appId: APP_ID,
        appKey: APP_KEY
    });
    // 显示次数
    function showTime(Counter) {
        var query = new AV.Query("Counter");
        if($(".leancloud_visitors").length > 0){
            var url = $(".leancloud_visitors").attr('id').trim();
            // where field
            query.equalTo("words", url);
            // count 
            query.count().then(function (number) {
                // There are number instances of MyClass where words equals url.
                $(document.getElementById(url)).text(number?  number : '--');
            }, function (error) {
                // error is an instance of AVError.
            });
        }
    }
   // 追加pv
    function addCount(Counter) {
        var url = $(".leancloud_visitors").length > 0 ? $(".leancloud_visitors").attr('id').trim() : 'icafebolger.com';
        var Counter = AV.Object.extend("Counter");
        var query = new Counter;
        query.save({
            words: url
        }).then(function (object) {
        })
    }
    $(function () {
        var Counter = AV.Object.extend("Counter");
        addCount(Counter);
        showTime(Counter);
    });
</script>
      <!-- Load our scripts -->
<!-- Resizable 'on-demand' full-height hero -->
<script type="text/javascript">
    var resizeHero = function () {
        var hero = $(".cover,.heightblock"),
            window1 = $(window);
        hero.css({
            "height": window1.height()
        });
    };

    resizeHero();

    $(window).resize(function () {
        resizeHero();
    });
</script>
<script src="/js/plugins.min.js"></script><!-- Bootstrap core and concatenated plugins always load here -->
<script src="/js/jquery.flexslider-min.js"></script><!-- Flexslider plugin -->
<script src="/js/scripts.js"></script><!-- Theme scripts -->


<link rel="stylesheet" href="/fancybox/jquery.fancybox.css" media="screen" type="text/css">
<script src="/fancybox/jquery.fancybox.pack.js"></script>
<script type="text/javascript">
$('#intro').find('img').each(function(){
  var alt = this.alt;

  if (alt){
    $(this).after('<span class="caption" style="display:none">' + alt + '</span>');
  }

  $(this).wrap('<a href="' + this.src + '" title="' + alt + '" class="fancybox" rel="gallery" />');
});
(function($){
  $('.fancybox').fancybox();
})(jQuery);
</script>

<!-- Initiate flexslider plugin -->
<script type="text/javascript">
    $(document).ready(function($) {
      (function(){
        console.log('font');
        var getCss = function(path) {
          var head = document.getElementsByTagName('head')[0];
          link = document.createElement('link');
          link.href = path;
          link.rel = 'stylesheet';
          link.type = 'text/css';
          head.appendChild(link);
        };
        getCss('https://fonts.googleapis.com/css?family=Montserrat:400,700');
        getCss('https://fonts.googleapis.com/css?family=Open+Sans:400,600');
      })();
      $('.flexslider').flexslider({
        animation: "fade",
        prevText: "",
        nextText: "",
        directionNav: true
      });
    });
</script>

</body>
</html>
